cmake_minimum_required(VERSION 3.5)
set(tgt vlog) 
project(${tgt})

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
set(CMAKE_CXX_EXTENSIONS OFF) #-std=c++11/-std=gnu++11

#SET(CMAKE_C_COMPILER clang)
#SET(CMAKE_CXX_COMPILER clang++)

add_definitions(-g)
#add_definitions(-Wall)
#add_definitions(-Wshadow)
#add_definitions(-Wconversion)
#add_definitions(-Wsign-conversion)
#add_definitions(-Wunused)
#add_definitions(-Wunused-variable)
#add_definitions(-Wunused-label)
#add_definitions(-Wunused-parameter)
#add_definitions(-Wextra)
add_definitions(-w)
add_definitions(-D__MY_DEVELOP__)

add_definitions(-pthread)
add_definitions(-D_FILE_OFFSET_BITS=64)
#add_definitions(-DWXUSINGDLL)
#add_definitions(-nostdinc++)
#add_definitions(-stdlib=libc++)

if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
    #add_definitions(-D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__)
elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
    #add_definitions(-D__WXGTK__)
    #add_definitions(-D__WXGTK210__)
    #add_definitions(-D__WXGTK__ -D__WXGTK__)
endif()

 
option(my_vlogger "use vlogger" ON)
if(my_vlogger)
    add_definitions(-D__MY_VLOGGER__)
    #add_definitions(-D__MY_CDAF_LOG__)
endif()

option(BUILD_MYTEST "whether to build unit test" ON)
option(BUILD_MYGOOGLETEST "whether to build unit test" ON)

if(CMAKE_SYSTEM_NAME MATCHES "Linux")

endif()

#include_directories(
#    ${CMAKE_CURRENT_SOURCE_DIR}
#    )

#link_directories(
#    /usr/local/lib
#    $ENV{wf3000_home}/dependence/sqlite-autoconf-3240000/.libs
#    $ENV{THIRD_PARTY_PATH_98}/googletest/googletest/build
#    ${wx_lib}
#    ${COMMON_LINK_DIR}
#    ${wf_dep}/wxart2d/lib
#    )

if(CMAKE_SYSTEM_NAME MATCHES "Darwin")

elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
endif()

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

add_subdirectory(vlog)

